package com.zz.nondatain.bean;

import java.io.Serializable;

/**
 * 公告实体类
 */
public class Announcement implements Serializable {
    private static final long serialVersionUID = 1L; // 添加序列化版本ID
    
    private String id;         // 公告ID
    private String title;      // 公告标题
    private String content;    // 公告内容
    private String publisher;  // 发布者
    private long publishTime;  // 发布时间（时间戳）
    private boolean isRead;    // 是否已读

    public Announcement() {
    }

    public Announcement(String id, String title, String content, String publisher, long publishTime) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.publisher = publisher;
        this.publishTime = publishTime;
        this.isRead = false;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public long getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(long publishTime) {
        this.publishTime = publishTime;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    @Override
    public String toString() {
        return "Announcement{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", publisher='" + publisher + '\'' +
                ", publishTime=" + publishTime +
                ", isRead=" + isRead +
                '}';
    }
} 